export default class {
  constructor(obj) {
    let defaultValue = {
      department: '',
      researchSection: '',
      name: '',
      teachingClass: '',
      teachingClassResult: '',
      teachingClassResultDesc: '',
      departPositions: '',
      shootingExam: '',
      shootingExamDesc: '',
      physicalExam: '',
      physicalExamDesc: '',
      scientificPayoffs: '',
      scientificPayoffsDesc: '',
      resultGrade: '',
      resultGradeDesc: '',
      sportsTraining: '',
      sportsTrainingDesc: '',
      otherResult: '',
      otherResultDesc: '',
      voteCount: 0,
      description: ''
    }
    let _obj = Object.assign(defaultValue, obj)
    this.department = _obj.department
    this.researchSection = _obj.researchSection
    this.name = _obj.name
    this.teachingClass = _obj.teachingClass
    this.teachingClassResult = _obj.teachingClassResult
    this.teachingClassResultDesc = _obj.teachingClassResultDesc
    this.departPositions = _obj.departPositions
    this.shootingExam = _obj.shootingExam
    this.shootingExamDesc = _obj.shootingExamDesc
    this.physicalExam = _obj.physicalExam
    this.physicalExamDesc = _obj.physicalExamDesc
    this.scientificPayoffs = _obj.scientificPayoffs
    this.scientificPayoffsDesc = _obj.scientificPayoffsDesc
    this.resultGrade = _obj.resultGrade
    this.resultGradeDesc = _obj.resultGradeDesc
    this.sportsTraining = _obj.sportsTraining
    this.sportsTrainingDesc = _obj.sportsTrainingDesc
    this.otherResult = _obj.otherResult
    this.otherResultDesc = _obj.otherResultDesc
    this.voteCount = _obj.voteCount
    this.description = _obj.description
  }
}
